// pages/add/orderdes/orderdes.js
Page({
  data: {
    bottomHeight: getApp().globalData.bottomHeight,
    order: {}
  },
  onLoad: function (options) {
    getApp().globalData.http.getDeposit().then(res => {
      this.setData({
        order: res.data
      });
    });
  },
  pay() {
    getApp().globalData.util.pay(this.data.order, () => {
      wx.switchTab({
        url: "/pages/add/typesel/typesel",
      });
    });
  }
})